Skip to content

New fuzzer: PreserveImportsExportsJS#8592

Open
kripken wants to merge 44 commits intoWebAssembly:mainfrom
kripken:fuzz.preserve.js
Open

New fuzzer: PreserveImportsExportsJS#8592
kripken wants to merge 44 commits intoWebAssembly:mainfrom
kripken:fuzz.preserve.js

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented Apr 10, 2026

This starts from wasm+js testcases and then modifies the wasm in a way that
preserves imports and exports, so the wasm+js can still be run. This is very
different from our usual approach of starting with only wasm, then bashing it
into the shape that our general js code can handle.

The main benefit here is testing of more interesting wasm+js interactions,
specifically for the JS Interop proposal. Three wasm+js combinations are
added in this PR that test features from that proposal.

@kripken kripken requested a review from a team as a code owner April 10, 2026 20:23
@kripken kripken requested review from aheejin and removed request for a team April 10, 2026 20:23
# Note that bugs found by this fuzzer require BINARYEN_TRUST_GIVEN_WASM=1 in the
# env for reduction. TODO: simplify this
class PreserveImportsExportsJS(TestCaseHandler):
frequency = 1
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we do this less frequently given how few starting configurations it has?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 3 initial testcases are just starting points for internal mutation, so hopefully this is testing a lot right now. And later I hope to add more here.

I suggest we keep it 1 and maybe deprioritize it later after we see if it finds stuff or not.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sgtm.

kripken and others added 2 commits April 13, 2026 16:19
Co-authored-by: Thomas Lively <tlively123@gmail.com>
Co-authored-by: Thomas Lively <tlively123@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants